function patterns = generatePatterns( N )
% GENERATEPATTERNS
    global PERCENT;
    global LOWER_BOUND;
    global UPPER_BOUND;
    global DEVIATION;
    
    %%patterns = zeros(, 2); %N patrones, input es solo X
    
    h = (UPPER_BOUND - LOWER_BOUND)/N;
    delta = h/10;
    x = LOWER_BOUND;
    y = LOWER_BOUND;
    i = 1;
    patterns = [];
    
    while x <= (UPPER_BOUND + delta),
        patterns(i,1) = x;
        patterns(i,2) = y;
        i = i + 1;
        y = y + h;
        if y > (UPPER_BOUND + delta)
            x = x + h;
            y = LOWER_BOUND;
        end
    end
      
    append = [];
    
    for t = 1:(length(patterns(:,1)))
        module = sqrt(patterns(t,1)^2 + patterns(t, 2)^2);
        if module > 3
            append = [append ; patterns(t, 1) patterns(t, 2)];
        end
    end
    
    
    patterns = append';

end

